package cn.itcast.consumer.web;

import cn.itcast.consumer.config.RedisProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 虎哥
 */
@RestController
@RequestMapping("hello")
public class HelloController {

    @Autowired
    private RedisProperties redisProperties;

    @GetMapping("redis")
    public RedisProperties getRedisProperties(){
        return redisProperties;
    }
}
